<template>
    <div>
      <h1>state</h1>
      <p @click="print">{{$store.state.msg}}</p>
    </div>
</template>

<script>
  export default {
    methods: {
      print() {
        console.log(this.$store.state.count)
      }
    }
  }
</script>

